﻿using System;
using System.Windows;

namespace Gmantis.Controls.DataGrid
{
    public class DataGridEndingEditEventArgs : EventArgs
    {
        // Methods
        internal DataGridEndingEditEventArgs(DataGridRow row, DataGridColumn column)
        {
            this.Column = column;
            this.Row = row;
        }

        // Properties
        public bool Cancel { get; set; }

        public DataGridColumn Column { get; private set; }

        public FrameworkElement EditingElement { get; internal set; }

        public DataGridRow Row { get; private set; }
    }
}
